package leetcode;

public class LC37 {
    public static void main(String[] args) {

    }
    public TreeNode invertTree(TreeNode root) {
        invertTree(root.left);
        invertTree(root.right);
        TreeNode left = root.left;
        TreeNode right = root.right;
        root.right = left;
        root.left = right;
        return root;
    }
}
